#include "CpLog.h"
#include "CpPoint.h"

ClassImp(CpPoint);

//________________________________________________________________________________________________________________
CpPoint::CpPoint(const Double_t& x, const Double_t& y, const Double_t& z, const Double_t& t): TObject()
{
//
// Constructor
//
  SetPosition(x,y,z);
  SetTime(t);
}

//________________________________________________________________________________________________________________
CpPoint::~CpPoint()
{
//
// Destructor.
//
}

void CpPoint::Print()
{
  CpInfo(Form("xyzt = [%f,%f,%f,%f]",fPos[0],fPos[1],fPos[2],fTime));
}


void CpPoint::SetPosition(const Double_t& x, const Double_t& y, const Double_t& z)
{
  fPos[0] = x;
  fPos[1] = y;
  fPos[2] = z;
}
